package com.example.administrator.szb.bean;
import java.util.List;

/**
 * Created by D N on 2017/10/31.
 * 业务表单
 */

public class YWBDBean {

    /**
     * result : 1
     * err_code : 0
     * err_msg :
     * data : {"busField":[{"id":2,"business_id":"股票质押","title":"股票属性","type":2,"unit":0,"unit_text":"","weight":2,"buschoices":[{"id":1,"busform_id":2,"title":"限售股"},{"id":2,"busform_id":2,"title":"流通股"}]},{"id":3,"business_id":"股票质押","title":"所属市场","type":2,"unit":0,"unit_text":"","weight":3,"buschoices":[{"id":3,"busform_id":3,"title":"主板"},{"id":4,"busform_id":3,"title":"中小板"},{"id":5,"busform_id":3,"title":"创业板"},{"id":6,"busform_id":3,"title":"新三板"},{"id":7,"busform_id":3,"title":"海外市场"}]},{"id":4,"business_id":"股票质押","title":"所处行业","type":2,"unit":0,"unit_text":"","weight":4,"buschoices":[{"id":12,"busform_id":4,"title":"两高一剩"},{"id":13,"busform_id":4,"title":"房地产"},{"id":14,"busform_id":4,"title":"以上均不是"}]},{"id":5,"business_id":"股票质押","title":"ST或负面信息","type":2,"unit":0,"unit_text":"","weight":5,"buschoices":[{"id":8,"busform_id":5,"title":"ST"},{"id":9,"busform_id":5,"title":"被处罚 "},{"id":10,"busform_id":5,"title":"亏损股"},{"id":11,"busform_id":5,"title":"以上均不是"}]},{"id":6,"business_id":"股票质押","title":"质押股数","type":1,"unit":1,"unit_text":"万股","weight":6,"buschoices":[]},{"id":7,"business_id":"股票质押","title":"融资金额","type":1,"unit":1,"unit_text":"万元","weight":7,"buschoices":[]},{"id":8,"business_id":"股票质押","title":"折扣率","type":1,"unit":2,"unit_text":"%","weight":8,"buschoices":[]},{"id":9,"business_id":"股票质押","title":"放款时间","type":1,"unit":3,"unit_text":"","weight":9,"buschoices":[]},{"id":10,"business_id":"股票质押","title":"融资期限","type":1,"unit":1,"unit_text":"月","weight":10,"buschoices":[]},{"id":11,"business_id":"股票质押","title":"利率要求","type":1,"unit":2,"unit_text":"%","weight":11,"buschoices":[]}]}
     */

    private int result;
    private int err_code;
    private String err_msg;
    private DataBean data;

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private List<BusFieldBean> busField;

        public List<BusFieldBean> getBusField() {
            return busField;
        }

        public void setBusField(List<BusFieldBean> busField) {
            this.busField = busField;
        }

        public static class BusFieldBean {
            /**
             * id : 2
             * business_id : 股票质押
             * title : 股票属性
             * type : 2
             * unit : 0
             * unit_text :
             * weight : 2
             * buschoices : [{"id":1,"busform_id":2,"title":"限售股"},{"id":2,"busform_id":2,"title":"流通股"}]
             */

            private int id;
            private String business_id;
            private String title;
            private int type;
            private int unit;
            private String unit_text;
            private int weight;
            private List<BuschoicesBean> buschoices;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getBusiness_id() {
                return business_id;
            }

            public void setBusiness_id(String business_id) {
                this.business_id = business_id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getUnit() {
                return unit;
            }

            public void setUnit(int unit) {
                this.unit = unit;
            }

            public String getUnit_text() {
                return unit_text;
            }

            public void setUnit_text(String unit_text) {
                this.unit_text = unit_text;
            }

            public int getWeight() {
                return weight;
            }

            public void setWeight(int weight) {
                this.weight = weight;
            }

            public List<BuschoicesBean> getBuschoices() {
                return buschoices;
            }

            public void setBuschoices(List<BuschoicesBean> buschoices) {
                this.buschoices = buschoices;
            }

            public static class BuschoicesBean {
                /**
                 * id : 1
                 * busform_id : 2
                 * title : 限售股
                 */

                private int id;
                private int busform_id;
                private String title;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getBusform_id() {
                    return busform_id;
                }

                public void setBusform_id(int busform_id) {
                    this.busform_id = busform_id;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }
            }
        }
    }
}
